#ifndef __ITASK_H_
#define __ITASK_H_
#include "KLib.h"

SK

class Task
{
private:
    int state;
    u32 progress;
protected:
    void updateProgress (u32 progress);
    void incProgress (u32 amount);
public:
    Task();
    virtual ~Task();
    bool isRunning (void);
    void abort (void);
    u32 getProgress (void);
    
    virtual void run (void) = 0;

    void _taskStart (void);
};

EK

#endif